import { SET_CHANNELS } from '../actionTypes'
const initState = []
export default function channels (state = initState, { type, payload }) {
  switch (type) {
    case SET_CHANNELS:
      return payload
    default:
      return state
  }
}
